//
//  main.m
//  Demo0007
//
//  Created by zTercel on 13-1-3.
//  Copyright (c) 2013年 zTercel. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Student.h"

extern int gCount;  // modify "static int gCount" to "int gCount" in Student.m

int main(int argc, const char * argv[])
{
    @autoreleasepool {
        Student* HanMeiMei  = [[Student alloc] init: "HanMeiMei" age: 12 sex: NO];
        Student* LiLei      = [[Student alloc] init: "LiLei" age: 12 sex: YES];
        Student* MaLiLi     = [[Student alloc] init: "Malili" age: 11 sex: NO];
        
        [HanMeiMei print];
        [LiLei print];
        [MaLiLi print];
        
        NSLog(@"HanMeiMei id: %d", HanMeiMei._id);
        NSLog(@"lilei id: %d", LiLei._id);
        //NSLog(@"create studen count: %d", gCount);   //if gCount declare is int gCount, it enable
        NSLog(@"create studen count: %d", [Student count]);

        
    }
    return 0;
}

